package com.hegongda.dao;

import com.hegongda.bean.OrderItem;
import com.hegongda.bean.Orders;
import java.sql.SQLException;
import java.util.List;

public interface OrdersDao {
    //添加订单方法,传递Orders对象
    void submitOrder(Orders orders)throws SQLException;
    //添加订单项方法,传递OrderItem对象
    void submitOrderItem(OrderItem orderItem) throws SQLException;
    List<Orders> getAllOrder(String uid, int limitone, int limittwo) throws SQLException;
    Orders getOneOrder(String oid) throws SQLException;
    public long getOrdersCount(String uid) throws SQLException;
    void updateOrder(String name,String address,String telephone,String oid)throws SQLException;
    void updateOrderState(String oid,int state) throws SQLException;
    public int delOrder(String oid) throws SQLException;
}
